﻿using Baula.TextGen.Framework.ComInterop;

namespace Baula.TextGen.Framework
{
    public class MissingPlaceholderValueException : TextGenException
    {
        public MissingPlaceholderValueException(string missingPlaceholderName) 
            : base(GetMessage(missingPlaceholderName), ErrorCodes.MissingPlaceholderValue)
        { }

        private static string GetMessage(string missingPlaceholderName)
        {
            return string.Format("For placeholder \"" + missingPlaceholderName + "\" no value has been given.");
        }
    }
}